<!DOCTYPE html>
<html>
<head>
<base href="${basePath}">
<meta charset="UTF-8">
<title>创建教练</title>
$!{include("import_js_css.html")}
<link rel="stylesheet" type="text/css" href="/yueyoga_all2014/app/admin/resources/css/basic.css" />
<script type="text/javascript">
$(function(){
	$('.selectpicker').select2();
});
</script>
</head>
<body>
	$!{include("header.html")}
	<div class="menu_all">
		<div class="div_search_result clear">
			<div class="panel-heading panel-result-title">
				<h3 class="panel-title">创建老师</h3>
			</div>
			<div class="panel-form-add">
				<form class="form-horizontal" action="yueyogaAdmin/addCoach.jhtml" method="POST">
					<div class="panel-form-layout">
						<label for="inputName" class="col-sm-1 control-label">老师姓名</label>
						<div class="col-sm-3">
							<input type="text" class="form-control" name="name" id="inputName" value="${name}" >
						</div>
						<label for="inputType" class="col-sm-1 control-label">类　型</label>
						<div class="col-sm-3">
							<select class="selectpicker show-menu-arrow" data-width="100%" name="type" id="inputType">
								<option value="0" selected>教练</option>
								<option value="1">助教</option>
							</select>
						</div>
						<br /> <br /> 
						<label for="inputSex" class="col-sm-1 control-label">老师性别</label>
						<div class="col-sm-3">
							<select class="selectpicker show-menu-arrow" data-width="100%" name="sex" id="inputSex">
								<option value="男" selected>男</option>
								<option value="女">女</option>
							</select>
						</div>
						<label for="inputEnabled" class="col-sm-1 control-label">是否启用</label>
						<div class="col-sm-3">
							<select class="selectpicker show-menu-arrow" data-width="100%" name="enable" id="inputEnabled">
								<option value="true">启用</option>
								<option value="false">禁用</option>
							</select>
						</div>
						<br /> <br /> 
						<label for="inputRemarks" class="col-sm-1 control-label">介绍</label>
						<div class="col-sm-9">
							<textarea class="form-control noneResize" style="width:665px;" name="remarks" id="inputRemarks" rows="3">${remarks}</textarea>
						</div>
						<br /> <br /><br /> <br /><br />
						<div class="panel-btn-search">
							<button type="submit" class="btn btn-default btn-ade-default panel-mr">保存</button>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
</body>
</html>
<script type="text/javascript">
	$(function() {
		$("#selTaskType").change(function() {
			var taskType = $(this).val();
			if (taskType == 2) {
				$("#ta_mbr_div").hide();
				$("#ta_gps_div").show();
			} else {
				$("#ta_gps_div").hide();
				$("#ta_mbr_div").show();
			}
		});
		var msg = '${msg}';
		if (msg) {
			alert(msg);
		}
	});
</script>